using System;
using System.Collections.Generic;
using System.Text;

namespace PlainConcepts.Fx.Dnie
{
    /// <summary>
    /// Dni-e Identification
    /// </summary>
	public struct DnieIdentity
	{
		#region Properties

		private string mLastName;
		/// <summary>
		/// Get  the last name
		/// </summary>
		public string LastName
		{
			get { return mLastName; }
		}

		private string mFirstName;
		/// <summary>
		/// Get the first name
		/// </summary>
		public string FirstName
		{
			get { return mFirstName; }
		}

		private string mDni;

		/// <summary>
		/// Get the DNI identification Number
		/// </summary>
		public string Dni
		{
			get { return mDni; }
		}

		#endregion

		#region Constructors

		/// <summary>
		/// Consturctor of Dni-e Identification
		/// </summary>
		public DnieIdentity(string lastName,string firstName,string dni)
		{
			this.mFirstName = firstName;
			this.mLastName = lastName;
			this.mDni = dni;
		}

		#endregion

		#region Overrides

        /// <summary>
        /// Object.ToString()
        /// </summary>
        /// <returns>Dni-e identitiy in string format</returns>
		public override string ToString()
		{
			return string.Format("{0},{1} DNI:{2}", mLastName, mFirstName, mDni);
		}
		#endregion
	}
}
